//
//  DrawerViewController.h
//  囧途
//
//  Created by fly on 16/3/3.
//  Copyright © 2016年 fly. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface DrawerViewController : UIViewController

@property (nonatomic, strong, readonly) UIViewController * mainViewController;
@property (nonatomic, strong, readonly) UIViewController * leftViewController;
@property (nonatomic, strong, readonly) UIScreenEdgePanGestureRecognizer * openGesture;

/**
 *  抽屉初始化方法，不用这个方法进行初始化，后果自负
 *
 *  @param mainViewController 抽屉主要显示的控制器
 *  @param leftViewController 左抽屉视图控制器
 *
 *  @return 抽屉容器对象
 */
- (instancetype)initWithMainViewController:(UIViewController *)mainViewController leftViewController:(UIViewController *)leftViewController;

/**
 *  直接打开抽屉
 */
- (void)openLeftDrawer;
/**
 *   直接关闭抽屉
 */
- (void)closeLeftDrawer;

@end
